<?php
/**
 * gpa_new Description
 * @package
 * @name controller_comment
 * @filesource controller_comment.php
 * @author Meta Sanjaya
 */

class controller_comment extends Controller
{
    /**
     * @access public
     * @method __construct
     * @param void
     * @return void
     */
    public function  __construct()
    {
        parent::__construct();
    }

    public function good_comment()
    {
        $post = getInstance('request')->post;

        if(isset($post['cid'])) {
            $cid = str_replace("#good_comment_", "", $post['cid']);
            $model = $this->getModel();
            $model->setCommentRecommendedBy($cid);

            die("good comment!");
        }

        die("failed to set good comment!");
    }

    public function __default()
    {
        echo "Comment App!";
    }
}
?>